/**
 * Created by wangshaohua on 2018/1/17.
 */
//
//var Models = {
//    //
//    LearningMapCourse: "com.sz.entities.models.learningMapSystem.learningMap.model.LearningMapCourse"
//    , LearningMapExercise: "com.sz.entities.models.learningMapSystem.exercise.model.LearningMapExercise"
//    , LearningMap: "com.sz.entities.models.learningMapSystem.learningMap.model.LearningMap"
//
//    , Badge : "com.sz.entities.models.dinosaurSystem.achievement.model.Badge"
//    //
//}
//
const Models = {
    //
    LearningMapCourse: {
        className: "com.cambio.model.studyMap.model.StudyClassGroup",
        query: {
            learningMapId: 'studyMap.id',
            code: 'code'
        }
    }
    , LearningMapExercise: {
        className: "com.cambio.model.studyMap.model.StudyClass",
        query: {
            learningMapCourseId: 'studyClassGroup.id'
        }
    }
    , LearningMap: {
        className: "com.cambio.model.studyMap.model.StudyMap",
        query: {
            name: 'name',
            code: 'code',
            createDate: 'createDate'
        }
    }
    , Event: {
        className: "com.cambio.model.event.model.Event",
        query: {
            code: 'code',
            type: {
                name: 'type',
                enumName: 'com.cambio.model.event.enums.EventTypeEnum'
            }
        }
    }
    , Badge: {
        className: "com.cambio.model.achievement.model.Badge",
        query: {
            code: 'code'
        }
    }
    , UserBadgeDetail: {
        className: "com.cambio.model.achievement.model.UserBadgeDetail",
        query: {
            badgeId: 'badge.id',
            badgeName: 'badge.name',
            createDate: 'createDate',
            companyCode: 'user.organizationClient.name'
        }
    }
    , LearningMapRoute: {
        className: 'com.cambio.model.studyMap.model.StudyMapRouteStyle',
        query: {
            code: 'code',
            name: 'name'
        }
    }
    , LearningMapCourseRoute: {
        className: 'com.cambio.model.studyMap.model.StudyMapClassRouteStyle',
        query: {
            learningMapRouteId: 'routeStyle.id'
        }
    }
    , LearningMapTaskMessage: {
        className: 'com.cambio.model.studyMap.model.UserTaskStudyContent',
        query: {
            LearningMapTaskId: 'userTaskStudy.id'
        }
    }
    , LanguageTemplate: {
        className: 'com.cambio.model.language.model.LanguageTemplate'
        //query: {
        //    LearningMapTaskId: 'userTaskStudy.id'
        //}
    }
    , Language: {
        className: 'com.cambio.model.language.view.LanguageView',
        query: {
            projectName: {
                name: 'projectName',
                enumClass: 'com.cambio.model.language.enums.LanguageProjectNameEnums'
            }
        }
    }
    , LearningMapAnswerSheet: {
        className: 'com.cambio.model.studyMap.model.UserStudy',
        query: {
            learningMapName: 'studyMap.name',
            status: {
                name: 'status',
                enumClass: 'com.cambio.model.studyMap.enums.UserStudyStatusEnum'
            },
            createDate: 'createDate',
            companyCode: 'user.organizationClient.name'
        }
    }
    , LanguageTemplate: {
        className: 'com.cambio.model.language.model.LanguageTemplate',
        query: {
            projectName: {
                name: 'projectName',
                enumClass: 'com.cambio.model.language.enums.LanguageProjectNameEnums'
            }
        }
    }
    , OrganizationClient: {
        className: 'com.cambio.model.organization.model.OrganizationClient',
        query: {
            createDate: 'createDate'
        }
    }
    , User: {
        className: 'com.cambio.model.user.model.User',
        query: {
            roleCode: 'role.code',
            organizationClientId: 'organizationClient.id'
        }
    }
    , Quiz: {
        className: 'com.cambio.model.gauge.model.GaugeTemplate',
        query: {
            createOrgId: 'createOrgId'
            // organizationClientId: 'organizationClient.id'
        }
    }
    , DynamicHtml: {
        className: 'com.cambio.model.dynamicHtml.model.DynamicHtml',
        query: {
            createOrgId: 'createOrgId'
            // organizationClientId: 'organizationClient.id'
        }
    }
    //
}

const EnumName = {
    LearningMapCourseStatusEnum: 'StudyClassGroupStatusEnum',
    LearningMapExerciseStatusEnum: 'StudyClassTypeEnum',
    LanguageProjectNameEnums: 'LanguageProjectNameEnums',
    LearningMapAnswerSheetStatusEnum: 'UserStudyStatusEnum'
}